import request from '@/utils/request'

// 查询问答列表
export function listQuestion(query) {
  return request({
    url: '/zs/question/list',
    method: 'get',
    params: query
  })
}

// 查询问答详细
export function getQuestion(zsQuestionId) {
  return request({
    url: '/zs/question/' + zsQuestionId,
    method: 'get'
  })
}

// 新增问答
export function addQuestion(data) {
  return request({
    url: '/zs/question',
    method: 'post',
    data: data
  })
}

// 修改问答
export function updateQuestion(data) {
  return request({
    url: '/zs/question',
    method: 'put',
    data: data
  })
}

// 删除问答
export function delQuestion(zsQuestionId) {
  return request({
    url: '/zs/question/' + zsQuestionId,
    method: 'delete'
  })
}
